import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/components/index'/*路由跳转地址名称*/
import waimai from '@/components/waimai'/*路由跳转地址名称*/
import solr from '@/components/solr'/*路由跳转地址名称*/
import order from '@/components/order'/*路由跳转地址名称*/
import my from '@/components/my'/*路由跳转地址名称*/
import mylogin from '@/components/mylogin'/*路由跳转地址名称*/
import myregister from '@/components/myregister'/*路由跳转地址名称*/
import merchant from '@/components/merchant'/*路由跳转地址名称*/
import myOrder from '@/components/myOrder'/*路由跳转地址名称*/
import cart from '@/components/cart'/*路由跳转地址名称*/
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/waimai',
      name: 'waimai',
      component: waimai
    },
    {
      path: '/solr',
      name: 'solr',
      component: solr
    },
    {
      path: '/order',
      name: 'order',
      component: order
    },
    {
      path: '/my',
      name: 'my',
      component: my
    },
    {
      path: '/mylogin',
      name: 'mylogin',
      component: mylogin
    },
    {
      path: '/myregister',
      name: 'myregister',
      component: myregister
    },
    {
      path: '/merchant',
      name: 'merchant',
      component: merchant
    },
    {
      path: '/myOrder',
      name: 'myOrder',
      component: myOrder
    },
    {
      path: '/cart',
      name: 'cart',
      component: cart
    }
  ]
})
